/* 变量定义 */
:root {
    --primary-blue: #00629B;
    --secondary-blue: #003B5C;
    --accent-orange: #FF6B35;
    --dark-bg: #2D2D2D;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 导航栏样式 */
.global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    padding: 0 6%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-logo {
    height: 55px;
    margin-right: 2.5rem;
    transition: transform 0.4s ease;
}

.nav-logo:hover {
    transform: rotate(-8deg) scale(1.05);
}

.nav-menu {
    flex: 1;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-item {
    position: relative;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: all var(--transition-base);
}

.nav-item:hover::after {
    width: 100%;
    left: 0;
}

.join-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light) !important;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 标题区域样式 */
.header-section {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    margin-top: 80px; /* 为固定导航栏留出空间 */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-logo {
    height: 180px;
    margin-bottom: 1rem;
}

/* 轮播区域样式 - 单张显示 */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    margin: 2rem 0;
    overflow: hidden;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-width: 50%;
}

.carousel-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 98, 155, 0.9);
    color: white;
    max-width: 600px;
}

.event-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.carousel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.event-date {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 多活动轮播区样式 */
.multi-carousel {
    background: var(--dark-bg);
    padding: 2rem 0;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
    padding: 0 1rem;
}

.carousel-slide {
    min-width: calc(33.333% - 1rem);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-badge {
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.event-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background var(--transition-base);
}

.event-button:hover {
    background: var(--secondary-blue);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base);
}

.carousel-dot.active {
    background: white;
}

/* 时间线样式 */
.timeline-section {
    padding: 6rem 6%;
    background: #F8FAFC;
}

.timeline-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-column {
    flex: 1;
    position: relative;
    padding-left: 2rem;
}

.timeline-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.timeline-node {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base);
}

.timeline-node:hover {
    transform: translateX(1rem);
}

/* 合作伙伴样式 */
.partners-section {
    padding: 4rem 6%;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-dark);
    opacity: 0.8;
}

.partners-section {
    padding: 4rem 1rem;
    background-color: var(--bg-light);
    text-align: center;
  }
  
  .section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
  }
  
  .section-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .section-header p {
    color: var(--text-dark);
    opacity: 0.8;
  }
  
  .partners-section {
    padding: 4rem 1rem;
    background-color: var(--bg-light);
    text-align: center;
  }
  
  .section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
  }
  
  .section-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .section-header p {
    color: var(--text-dark);
    opacity: 0.8;
  }
  
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
  }
  
  .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: transform 0.3s ease;
  }
  
  .partner-logo:hover {
    transform: scale(1.05);
  }
  
  .partner-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  

/* 页脚样式 */
.global-footer {
    background: var(--dark-bg);
    padding: 4rem 6%;
    color: var(--text-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.design-credit {
    font-size: 0.9rem;
}

.design-credit a {
    color: inherit;
    text-decoration: none;
}

/* 响应式设计 */

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-carousel-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-item {
        flex-direction: column;
    }
    
    .carousel-image {
        min-height: 50%;
        min-width: 100%;
    }
    
    .carousel-content {
        max-width: 100%;
        padding: 2rem;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section {
        height: 90vh;
        min-height: auto;
    }
    
    .carousel-control {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    
    .event-description {
        font-size: 1rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .global-nav {
        height: 70px;
        padding: 0 5%;
    }

    .nav-menu {
        display: none;
    }

    .timeline-container {
        flex-direction: column;
    }

    .carousel-slide {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .header-section {
        margin-top: 70px;
        padding: 1.5rem 0;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .hero-logo {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
    
    .partner-logo {
      height: 100px;
    }
  }
  
  @media (max-width: 480px) {
    .partners-grid {
      grid-template-columns: 1fr;
      max-width: 300px;
    }
  }